﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class product_OnlineSales_OnlineSales : System.Web.UI.Page
{

    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
    {
        if (DropDownList1.SelectedItem.Value == "A")
        {

            Image1.ImageUrl = "~/product/card/AllImages/ImageA1.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image3.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image2.jpg";
            Item1.Text = "Alarm Clock";
            Item2.Text = "Telescope";
            Item3.Text = "Big Ben";
            DiscountedAmount1.Text = "39.95";
            DiscountedAmount2.Text = "74.95";
            DiscountedAmount3.Text = "69.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
            this.Label1.Visible = true;
            this.Label2.Visible = true;
            this.Label3.Visible = true;
          


        }
        else if (DropDownList1.SelectedItem.Value == "B")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image4.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image6.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image5.jpg";
            Item1.Text = "Oball";
            Item2.Text = "Word Wings Book";
            Item3.Text = "World Record Paper Airplane Book";
            DiscountedAmount1.Text = "4.95";
            DiscountedAmount2.Text = "9.95";
            DiscountedAmount3.Text = "10.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "C")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image7.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image9.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image8.jpg";
            Item1.Text = "Art 101";
            Item2.Text = "Animal Ice Cream Cup";
            Item3.Text = "Toy fish tank";
            DiscountedAmount1.Text = "39.95";
            DiscountedAmount2.Text = "9.95";
            DiscountedAmount3.Text = "24.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "D")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image10.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image12.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image11.jpg";
            Item1.Text = "Solid Drum";
            Item2.Text = "Midnight Moon Dragon";
            Item3.Text = "Animal Figurines";
            DiscountedAmount1.Text = "14.95";
            DiscountedAmount2.Text = "9.95";
            DiscountedAmount3.Text = "8.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "E")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image13.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image15.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image14.jpg";
            Item1.Text = "Eggling";
            Item2.Text = "Robotic Arm";
            Item3.Text = "Book o dinosaurs";
            DiscountedAmount1.Text = "7.95";
            DiscountedAmount2.Text = "59.95";
            DiscountedAmount3.Text = "9.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "F")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image16.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image18.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image17.jpg";
            Item1.Text = "UnderWater puzzle";
            Item2.Text = "Lemonade Stand";
            Item3.Text = "Farm block pieces";
            DiscountedAmount1.Text = "9.95";
            DiscountedAmount2.Text = "79.95";
            DiscountedAmount3.Text = "9.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "G")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image19.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image21.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image20.jpg";
            Item1.Text = "Sand and water farm";
            Item2.Text = "Pioneer Globe";
            Item3.Text = "Electronic Labyrinth";
            DiscountedAmount1.Text = "59.95";
            DiscountedAmount2.Text = "59.95";
            DiscountedAmount3.Text = "29.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "H")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image22.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image24.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image23.jpg";
            Item1.Text = "Hand Puppet";
            Item2.Text = "Halloween Nano";
            Item3.Text = "Hot wheels pack";
            DiscountedAmount1.Text = "4.95";
            DiscountedAmount2.Text = "5.95";
            DiscountedAmount3.Text = "9.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }
        else if (DropDownList1.SelectedItem.Value == "I")
        {
            Image1.ImageUrl = "~/product/card/AllImages/Image25.jpg";
            Image2.ImageUrl = "~/product/card/AllImages/Image27.jpg";
            Image12.ImageUrl = "~/product/card/AllImages/Image26.jpg";
            Item1.Text = "Elf Sky";
            Item2.Text = "Deluxe Ice Cream Lover's Kit";
            Item3.Text = "Ivan's Hinge";
            DiscountedAmount1.Text = "8.95";
            DiscountedAmount2.Text = "34.95";
            DiscountedAmount3.Text = "8.95";
            DiscountedPrice1.Visible = true;
            DiscountedPrice2.Visible = true;
            DiscountedPrice3.Visible = true;
        }


    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        if (Item1.Text == "Alarm Clock")
        {
        Session["Quantity"] = Quantity.Text;
        Session["Product"] = Item1.Text;
        Session["Discount"] = DiscountedAmount1.Text;
        Session["Price"] = DiscountedPrice1.Text;


        Server.Transfer("Item1.aspx");
    }
        else if (Item1.Text == "Oball")
        {
            Session["Quantity"] = Quantity.Text;
        Session["Product"] = Item1.Text;
        Session["Discount"] = DiscountedAmount1.Text;
        Session["Price"] = DiscountedPrice1.Text;



        Server.Transfer("Item4.aspx");
}
        else if (Item1.Text == "Art 101")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item7.aspx");
        }

        else if (Item1.Text == "Solid Drum")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item10.aspx");
        }

        else if (Item1.Text == "Eggling")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item13.aspx");
        }

        else if (Item1.Text == "UnderWater puzzle")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item16.aspx");
        }

        else if (Item1.Text == "Sand and water farm")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item19.aspx");
        }

        else if (Item1.Text == "Hand Puppet")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item22.aspx");
        }

        else if (Item1.Text == "Elf Sky")
        {
            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item1.Text;
            Session["Discount"] = DiscountedAmount1.Text;
            Session["Price"] = DiscountedPrice1.Text;


            Server.Transfer("Item25.aspx");
        }
       
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        if (Item2.Text == "Telescope")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;

            Server.Transfer("Item3.aspx");
        }
        else  if (Item2.Text == "Word Wings Book")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;
            Server.Transfer("Item6.aspx");
        }
        else if (Item2.Text == "Animal Ice Cream Cup")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;
            Server.Transfer("Item8.aspx");
        }
        else if (Item2.Text == "Midnight Moon Dragon")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;
            Server.Transfer("Item11.aspx");
        }
        else if (Item2.Text == "Robotic Arm")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;
            Server.Transfer("Item14.aspx");
        }
        else if (Item2.Text == "Lemonade Stand")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;

            Server.Transfer("Item17.aspx");
        }
        else if (Item2.Text == "Pioneer Globe")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;

            Server.Transfer("Item20.aspx");
        }
        else if (Item2.Text == "Halloween Nano")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;

            Server.Transfer("Item23.aspx");
        }
        else if (Item2.Text == "Deluxe Ice Cream Lover's Kit")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item2.Text;
            Session["Discount"] = DiscountedAmount2.Text;
            Session["Price"] = DiscountedPrice2.Text;

            Server.Transfer("Item26.aspx");
        }
   }
    protected void Button3_Click(object sender, EventArgs e)
    {
        if (Item3.Text == "Big Ben")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item2.aspx");
        }
        else if (Item3.Text == "World Record Paper Airplane Book")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item5.aspx");
        }
        else if (Item3.Text == "Toy fish tank")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item9.aspx");
        }

        else if (Item3.Text == "Animal Figurines")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item12.aspx");
        }

        else if (Item3.Text == "Book o dinosaurs")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item15.aspx");
        }

        else if (Item3.Text == "Farm block pieces")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item18.aspx");
        }

        else if (Item3.Text == "Electronic Labyrinth")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item21.aspx");
        }

        else if (Item3.Text == "Hot wheels pack")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item24.aspx");
        }

        else if (Item3.Text == "Ivan's Hinge")
        {

            Session["Quantity"] = Quantity.Text;
            Session["Product"] = Item3.Text;
            Session["Discount"] = DiscountedAmount3.Text;
            Session["Price"] = DiscountedPrice3.Text;
            Server.Transfer("Item27.aspx");
        }
  
  
    }
   
}